package com.haixiaoke.saas.manage.lock;

import com.haixiaoke.saas.common.core.page.TableDataInfo;
import com.haixiaoke.saas.lock.domain.HouseLock;
import com.haixiaoke.saas.lock.service.IHouseLockService;
import com.haixiaoke.saas.system.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 房间锁信息Controller
 *
 * @author qixi
 * @date 2024-8-5 14:52:46
 */
@RestController
@RequestMapping("/manage/lock/houseLock")
public class ManageHouseLockController extends BaseController {
    @Autowired
    private IHouseLockService houseLockService;


    /**
     * 查询房间锁信息列表
     */
    @GetMapping("/list")
    public TableDataInfo list(HouseLock houseLock) {
        startPage();
        List<HouseLock> list = houseLockService.selectHouseLockListAndTenantState(houseLock);
        return getDataTable(list);
    }

}
